import { RouteRecordRaw } from "vue-router";

// 帐号管理模块
const tableRouter: Array<RouteRecordRaw> = [
  {
    path: "/account",
    component: () => import("@/layouts/index.vue"),
    redirect: "/account/cash",
    meta: {
      icon: "MessageBox",
      title: "帐号管理"
    },
    children: [
      {
        path: "/account/cash",
        name: "accountCash",
        component: () => import("@/views/account/cash/index.vue"),
        meta: {
          icon: "menu",
          title: "提现管理",
          keepAlive: true,
          requiresAuth: true,
          key: "accountCash"
        },
        children: []
      },
      {
        path: "/account/stream",
        name: "accountStream",
        component: () => import("@/views/account/stream/index.vue"),
        meta: {
          icon: "menu",
          title: "帐号明细",
          keepAlive: true,
          requiresAuth: true,
          key: "accountStream"
        },
        children: []
      },
      {
        path: "/account/config",
        name: "accountConfig",
        component: () => import("@/views/account/card/index.vue"),
        meta: {
          icon: "menu",
          title: "绑定银行卡",
          keepAlive: true,
          requiresAuth: true,
          key: "accountConfig"
        },
        children: []
      }
    ]
  }
];
export default tableRouter;
